<?php
/**
 * [PHPFOX_HEADER]
 *
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package  		Module_Feed
 * @version 		$Id: display.html.php 4176 2012-05-16 10:49:38Z Raymond_Benc $
 */

defined('PHPFOX') or exit('NO DICE!');

?>

<div class="survey_feed_form">
	<div class="survey_wrapper">
		<form method="post" action="{url link='survey.frame'}" id="js_activity_feed_form" enctype="multipart/form-data" target="iframe_loader">
			<div id="js_custom_privacy_input_holder"></div>
			<div class="title">
				<input type="text" value="Write a topic title..." name="val[title]" id="title" />
			</div>
			<div class="attachment">
				<input class="attachment-item" id="attachment-image" style="display: none;" type="file" name="image[]" />
				<input class="attachment-item" id="attachment-music" style="display: none;" type="file" name="music[]" />
				<input id="attachment-type" type="hidden" name="val[attachment-type]" value="none"/>
				<div class="link"></div>
			</div>
			<div class="question">
				<!--input type="file" name="val[attachment]" /-->
				<textarea name="val[question]" id="question">Type the question want to survey...</textarea>
			</div>
			<div class="activity_feed_form_button">
				<div class="activity_feed_form_button_position">
								<span class="privacy_title" style="">Visible:</span>
								<div class="privacy_selectbox" style="">
									{module name='privacy.form' privacy_name='privacy' privacy_type='mini'}
								</div>
					{if Phpfox::isModule('share')}
					<div class="feed_share_on_holder timeline_date_holder">
						{if Phpfox::getParam('share.share_on_facebook')}
						<div class="feed_share_on_item"><a href="#" onclick="$(this).toggleClass('active'); $.ajaxCall('share.connect', 'connect-id=facebook', 'GET'); return false;">{img theme='layout/facebook.png' class='v_middle'} {phrase var='feed.facebook'}</a></div>
						{/if}
						{if Phpfox::getParam('share.share_on_twitter')}
						<div class="feed_share_on_item"><a href="#" onclick="$(this).toggleClass('active'); $.ajaxCall('share.connect', 'connect-id=twitter', 'GET'); return false;">{img theme='layout/twitter.png' class='v_middle'} {phrase var='feed.twitter'}</a></div>
						{/if}
						<div class="clear"></div>
					</div>
					{/if}
					<div class="activity_feed_form_share" style="position: absolute;right:60px;">
						<div class="activity_feed_form_share_process">{img theme='ajax/add.gif' class='v_middle'}</div>
						<ul class="activity_feed_form_attach">
							{*<li>
								<a id="attach-music" href="#" style="background-image:url('{img theme='feed/music.png' return_url=true}'); background-repeat:no-repeat; background-position: 50% 50%">
								</a>
							</li>*}
							<li>
								<a id="attach-image" href="#" style="background-image:url('{img theme='feed/photo.png' return_url=true}'); background-repeat:no-repeat; background-position: 50% 50%">
								</a>
							</li>
							{*<li>
								<a id="attach-link" href="#" style="background-image:url('{img theme='feed/link.png' return_url=true}'); background-repeat:no-repeat; background-position: 50% 50%">
								</a>
							</li>*}
						</ul>
						<div class="clear"></div>
					</div>

					<div class="activity_feed_form_button_position_button" >
						<input type="submit" value="{phrase var='feed.share'}"  id="activity_feed_submit" class="button" />
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<iframe frameborder="0" style="display:none;" name="iframe_loader" id="iframe_loader"></iframe>
		</form>
	</div>
</div>
<div class="clear"></div>